package net.huashitong.entity;

import net.huashitong.shiro.Principal;
import net.huashitong.ssydt.user.entity.vo.UserOutVO;


public class UserMessage extends Principal {
    private String userId;
    private String imageUrl;//头像url
    private String nickname;//昵称

    public UserMessage(UserOutVO userOutVO) {
        this.userId = userOutVO.getUserId();
        this.imageUrl = userOutVO.getImageUrl();
        this.nickname = userOutVO.getNickname();
    }

    @Override
    public String getUserId() {
        return userId;
    }

    @Override
    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
}
